package com.camelgreen.baseclass;

import java.io.Serializable;
import java.util.List;
/**
 * 
 * @version 1.0
 */
public interface EntityDao <T,PK extends Serializable>{

	public Object getById(PK id);
	
	public void deleteById(PK id);
	
	public T save(T entity);
	
	public void update(T entity);

	public void saveOrUpdate(T entity);

	public boolean isUnique(T entity, String uniquePropertyNames);
	
	public void flush();
	
	public List<T> findAll();
	
}
